Auto merge of #3978 - dethoter:separated-credentials, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 13 Jun 2017 19:18:49 +0000 (19:18 +0000)
committerbors <bors@rust-lang.org>
Tue, 13 Jun 2017 19:18:49 +0000 (19:18 +0000)
commit1716d0fc5baa8ca21fa9b5339fb4b68ade66523d
treeba079b03c2f0d399f4aed1445f6d3dea830b7db6
parent70b423df49e4060e2796685a8dd3692832bf3018
parent1ccdc8bb1d52eb2139163ee33dca7f5cd86d46cf
Auto merge of #3978 - dethoter:separated-credentials, r=alexcrichton

Move API token into the separate file.

Fix of #3748. BTW, it's not clear what to do with old config.
Should I add a check for old config and try to remove [repository.token] field from it every time user add a new token?
Or should I just prefer to use a token field from a new config over the old one?
src/cargo/util/config.rs